<?php
//getting the cart id from the cookie
$shoppingcart_id = $_COOKIE["shoppingcart_id"];

//getting the item id from the request
$item_id = $_GET["item"];
		
//perform the mysql query to link the two elements inside DB
mysql_query("DELETE FROM rel WHERE ID_CART = '$shoppingcart_id' AND ID_ITEM = '$item_id'");
?>